package kr.hkit.androidcomplete03.ch29;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class FreeBR extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		Intent intent2 = new Intent(context,LoginEx.class);
		intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		context.startActivity(intent2);
		String str = intent.getStringExtra("BroadCast");
		Toast.makeText(context, str, Toast.LENGTH_LONG).show();

	}

}
